# Contributor: mio <miyopan@e.email>
# Maintainer: mio <miyopan@e.email>
pkgname=madonctl
pkgver=0_git20210711
pkgrel=3
_gitrev=8ecb5fad4db276453ceca2123fcf568fe77ca211
pkgdesc="CLI client for the Mastodon social network API"
url="https://github.com/McKael/madonctl"
license="MIT"
arch="all"
makedepends="go"
source="madonctl-$_gitrev.tar.gz::https://github.com/McKael/madonctl/archive/$_gitrev.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_gitrev"

build() {
	go build
}

package() {
	install -Dm0755 madonctl -t "$pkgdir"/usr/bin
}
sha512sums="
8a11fc6a9495248c424ddf9cdf9028c8faf984f554f4e112f5336519764ea75076d9b566b4255df67afe46797fbc7a50d8c9c109c29d4b7f16d5297a0f49f075  madonctl-8ecb5fad4db276453ceca2123fcf568fe77ca211.tar.gz
"
